package me.cat.staticdemo.a03staticdemo3;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        Student s1 = new Student("zhangsan", 20, "男");
        Student s2 = new Student("liai", 21, "男");
        Student s3 = new Student("wangwu", 22, "女");
        list.add(s1);
        list.add(s2);
        list.add(s3);
        int maxAgeStudent = StudentUtil.getMaxAgeStudent(list);
        System.out.println(maxAgeStudent);
    }
}
